package Dome5;

public class Text5 {
    public static void main(String[] args) {
        String str="aa1212bbacbb";
        String str3=str.replaceFirst("bb","ww");
        System.out.println(str3);

        String str2=str.replace("bb","ww");
        System.out.println(str2);
        String str1=str.replace('a','0');
        System.out.println(str1);


    }
}
